#include "gcase.h"

GCase::GCase(QWidget *parent) :
    QPushButton(parent)
{

}

GCase::GCase(QWidget  *parent, int coord_x, int coord_y) :
    QPushButton(parent), x(coord_x), y(coord_y)
{
    player = 0;
}


const int GCase::getX() const
{
    return x;
}

const int GCase::getY() const
{
    return y;
}

const bool GCase::isTaken() const
{
    return taken;
}

const void GCase::setTaken(const bool new_status)
{

    taken = new_status;
	if (taken == false)
		this->setIcon(QIcon());
}

